package com.kaikeba.bean;

import java.sql.Timestamp;
import java.util.Objects;

public class CourierExpress {
    private int id;
    private String username;
    private String userPhone;
    private String IDCard;
    private String password;
    private int count;
    private Timestamp createTime;
    private Timestamp loginTime;

    public CourierExpress() {
    }

    public CourierExpress(String username, String userPhone, String IDCard, String password) {
        this.username = username;
        this.userPhone = userPhone;
        this.IDCard = IDCard;
        this.password = password;
    }

    public CourierExpress(int id, String username, String userPhone, String IDCard, String password, int count, Timestamp createTime, Timestamp loginTime) {
        this.id = id;
        this.username = username;
        this.userPhone = userPhone;
        this.IDCard = IDCard;
        this.password = password;
        this.count = count;
        this.createTime = createTime;
        this.loginTime = loginTime;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Timestamp loginTime) {
        this.loginTime = loginTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getIDCard() {
        return IDCard;
    }

    public void setIDCard(String IDCard) {
        this.IDCard = IDCard;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CourierExpress that = (CourierExpress) o;
        return id == that.id && count == that.count && Objects.equals(username, that.username) && Objects.equals(userPhone, that.userPhone) && Objects.equals(IDCard, that.IDCard) && Objects.equals(password, that.password) && Objects.equals(createTime, that.createTime) && Objects.equals(loginTime, that.loginTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, username, userPhone, IDCard, password, count, createTime, loginTime);
    }

    @Override
    public String toString() {
        return "CourierExpress{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", IDCard='" + IDCard + '\'' +
                ", password='" + password + '\'' +
                ", count=" + count +
                ", createTime=" + createTime +
                ", loginTime=" + loginTime +
                '}';
    }
}
